{% extends "admin/base_site.html" %}
{% load adminmedia admin_list i18n search_tags %}
{% block stylesheet %}{% admin_media_prefix %}css/changelists.css{% endblock %}
{% block bodyclass %}change-list{% endblock %}
{% block coltype %}flex{% endblock %}

{% block breadcrumbs %}
<div class="breadcrumbs">
	<a href="../../../">{% trans "Home" %}</a> &rsaquo;
	<a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
	<a href="../">{{opts_model.model_name}}</a> &rsaquo;
	<a href="./">{{object}}</a> &rsaquo;
</div>
{% endblock %}

{% block content %}
<style type="text/css">
.table-search th
{
	text-align: right;
}
</style>


<div id="content-main">

<h1>{{opts_model.model_name}}</h1>
<div class="module">
{% block result-list %}

<table class="table-search" width="100%">
<caption>{{object}}</caption>
<tr>
	<th scope="row">{% trans object.get_meta.pk.name %}:</th>
	<td>{{object.pk}}</td>
</tr>
{% for field in object.items_view %}
<tr>
	<th scope="row"><nobr>{% blocktrans with field.0.verbose_name|capfirst as name %}{{name}}{% endblocktrans %}:</nobr></th>
	<td>
		{{field.1|print_field_value}}
		&nbsp;&rsaquo;<a href="#"
			onclick='
var ul = document.getElementById("search-model-object-view-terms-{{field.0.name}}");
if (ul.style.display == "none")
{
	ul.style.display = "";
} else {
	ul.style.display = "none";
}
return false;
			'
		>{% trans "Show Terms" %}</a>
		<ul
			id="search-model-object-view-terms-{{field.0.name}}"
			style="
				display: none;
			"
		>
			{% for t in object|terms:field.0.name %}
				<li>{{t}}</li>
			{% endfor %}
		</ul>
	</td>
</tr>
{% endfor %}
</table>

{% endblock %}
</div>
{% endblock %}
